//
//  NetworkTransport.h
//  Mobile P2P
//
//  Created by Chris Karr on 5/20/08.
//  Copyright 2008 Northwestern University. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#define DOWNLOAD_FILE @"Download File"
#define FILE_DOWNLOADED @"File Downloaded"

#define DO_SEARCH @"Do Search"
#define SEARCH_RESULTS @"Search Results"
#define RESULTS @"Results"

#define QUERY @"Query"
#define TITLE @"title"
#define RELIABILITY @"reliability"
#define DATA @"data"
#define PATH @"path"

@interface NetworkTransport : NSObject 
{
	NSConnection * connection;
	NSSocketPort * port;
	NSNetService * bonjour;

	NSString * currentQuery;
	
	NSDate * lastAccess;
	NSMutableDictionary * cache;
}

@property(retain) NSConnection * connection;
@property(retain) NSSocketPort * port;
@property(retain) NSNetService * bonjour;

@property(copy) NSString * currentQuery;

@property(retain) NSDate * lastAccess;
@property(retain) NSMutableDictionary * cache;

@end
